<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>装修招标_装饰招标-保家网(X团)</title>
    <meta name="description" content="免费发布装修招标、装饰招标、家装招标信息, 装修全程有保障, 装修招标就上保家网(X团装修网)装修招标网">
    <meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width">
    <meta content="telephone=no" name="format-detection">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="src/css/common_v2014.css" type="text/css">
    <link href="src/css/wap_v2014.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="src/layer.css" id="layui_layer_skinlayercss" >
    <style type="text/css">
            .layer-huxing{
                position: fixed;
                left: 0px;
                top: 0px;
                z-index: 99;
                zoom: 1;
                text-align: center;
                bottom: 0px;
                right: 0px;
                display: none;
                background-color: rgba(0, 0, 0, 0.298039);
            }
            .layer-huxing .layer-content{
                position: fixed;
                left: 8%;
                top: 50%;
                width: 84%;
                padding-top: 23px;
                margin-top: -170px;
                z-index: 100;
                zoom: 1;
                background: #FFF;
                border-radius: 3px;
            }
            .layer-huxing .column{
                position: absolute;
                top: 24px;
                left: 50%;
                margin-left: -80px;
                padding: 0 15px;
                width: 160px;
                text-align: center;
                background: #fff;
                font-size: 18px;
                color: #333;
                z-index: 10;
            }
            .layer-huxing .cut-line{
                width: auto;
                margin: 10px 45px 0;

                height: 1px;
                display: block;
                border-bottom: #e3e3e3 1px solid;
            }
            .layer-huxing .huxing-option{
                width: 100%;
                padding: 30px 0 10px 0;
                display: flex;
                justify-content: center;
                border-bottom: 1px #e3e3e3 solid;
            }
            .layer-huxing .huxing-option:after{
                content: '';
                font-size: 0;
                height: 0;
                display: block;
                clear: both;
                overflow: hidden;
            }
            .layer-huxing ul{
                width:20%;
                margin-right: 10px;
                float: left;
            }
            .layer-huxing ul:last-of-type {
                margin-right: 0;
            }
            .layer-huxing ul li{
                width: 100%;
                height: 27px;
                margin-bottom: 10px;
                line-height: 27px;
                background: #f4f4f4;
                border-radius: 3px;
                color: #666;
                font-size: .4rem;
            }
            .layer-huxing ul li.on{
                background: #f79c33;
                color:#fff;
            }
            .layer-huxing input[type="button"]{
                width: 100%;
                height: 45px;
                color: #f79c33;
                font-size: 16px;
                line-height: 45px;
                background: none;
                -webkit-appearance: none;
                outline: none;
                border: none;
            }
        .form-input span{
            line-height: 50px;
            float: left;
        }
        .radio{
            height: 50px;
            width: 100%;
            border-radius: 5px;
            background: #EFEFEF;
            margin-top: .2rem;
        }
            .decoration-type {
                float: left;
                position: relative;
                display: inline-block;
                /*width: 90px;*/
                width: 30%;
                top: 0;
                left: 6px;
                margin-right: 30px;
                padding-left: 20px;
                color: #666;
                line-height: 50px;
                font-size: .4rem;
            }
            .decoration-type::before {
                content: '';
                display: block;
                position: absolute;
                left: 0;
                top: 50%;
                margin-top: -7px;
                width: 14px;
                height: 14px;
                color: #9a9a9a;
                border-radius: 50%;
                border: 1px solid;
            }
            .decoration-type.selected::after {
                content: '';
                display: block;
                position: absolute;
                left: 3.4px;
                top: 51%;
                margin-top: -4px;
                width: 8px;
                height: 8px;
                background-color: #34c083;
                border-radius: 50%;
                border: 1px solid #34c083;
            }
            .last{
                text-align: center;
                font-size: 1rem;
                margin-bottom: .4rem;
            }
            .people{
                color: #FF690E;
            }

    </style>


</head>
<body>
<div class="common mod-zb" style="background: #f9f9f9;">
    <div class="m-cal">
        <div><img src="src/img/banner.jpg"></div>
        <div class="bd box">
            <h2>2018装修一套房子多少钱？</h2>
            <div class="frame fn-clear">
                <div class="num num-bg fn-clear">
                    <div class="unit">元</div>
                    <div class="val"></div>
                </div>
            </div>
            <div class="result">
                <ul>
                    <li class="fn-clear">
                        <p>人工费：<span class="labour"><em>?</em> 元</span></p>
                        <p>材料费：<span class="material"><em>?</em> 元</span></p>
                    </li>
                    <li class="fn-clear">
                        <p>设计费：<span class="design"><em>?</em> 元</span><span class="zero">0元</span></p>
                        <p>质检费：<span class="quality"><em>?</em> 元</span><span class="zero">0元</span></p>
                    </li>
                </ul>
            </div>
            <form action="javascript:;" method="post" onsubmit="calculateTG(&#39;#baojia&#39;)" id="baojia">
                <input type="hidden" name="landing_page" value="http://m.xtuan.com/zhaobiao/gdt?utm_source=guangdiantong&amp;utm_city=xian&amp;utm_id=31&amp;qz_gdt=__tracestrin" id="landing_page">
                <div class="form-item">
                    <select class="form-select" id="province" name="province"><option value="">省/市</option><option value="340000">A 安徽</option><option value="110000">B 北京</option><option value="500000">C 重庆</option><option value="350000" selected="">F 福建</option><option value="520000">G 贵州</option><option value="440000">G 广东</option><option value="450000">G 广西</option><option value="620000">G 甘肃</option><option value="230000">H 黑龙江</option><option value="410000">H 河南</option><option value="420000">H 湖北</option><option value="430000">H 湖南</option><option value="130000">H 河北</option><option value="460000">H 海南</option><option value="320000">J 江苏</option><option value="360000">J 江西</option><option value="220000">J 吉林</option><option value="210000">L 辽宁</option><option value="640000">N 宁夏</option><option value="150000">N 内蒙古</option><option value="630000">Q 青海</option><option value="510000">S 四川</option><option value="370000">S 山东</option><option value="610000">S 陕西</option><option value="140000">S 山西</option><option value="310000">S 上海</option><option value="120000">T 天津</option><option value="650000">X 新疆</option><option value="530000">Y 云南</option><option value="330000">Z 浙江</option></select>
                    <select class="form-select" id="city" name="city"><option value="">市/地区</option><option value="430100">长沙市</option><option value="430200">株洲市</option><option value="430300">湘潭市</option><option value="430400">衡阳市</option><option value="430500">邵阳市</option><option value="430600">岳阳市</option><option value="430700">常德市</option><option value="430800">张家界市</option><option value="430900">益阳市</option><option value="431000">郴州市</option><option value="431100">永州市</option><option value="431200">怀化市</option><option value="431300">娄底市</option><option value="433100">湘西土家族苗族自治州</option></select>
                </div>
                <div class="form-item">
                    <input class="form-input" type="text" name="mianji" id="mianji" placeholder="请输入您的房屋面积">
                    <span class="unit">m2</span>
                </div>
                <div class="form-item rooms">
                    <input class="form-input " type="text" readonly name="hxxq[]" id="housty" placeholder="请选择房屋类型" value="" hidden>
                    <div class="form-input">
                        <span class="shi showa" id="testshi" data-name="">2室</span>
                        <span class="ting showa" id="testting">1厅</span>
                        <span class="wei showa" id="testwei">2卫</span>
                        <span class="yang showa" id="testyangtai">1阳台</span>
                    </div>
                </div>
                <div class="form-item radio">
                    <input type="text" name="3" hidden id="clickra"/>
                    <span class="decoration-type newHouse">新房装修</span>
                    <span class="decoration-type oldHouse selected">旧房翻新</span>
                </div>
                <div class="form-item">
                    <input class="form-input" type="tel" name="phone" id="phone" placeholder="输入号码，报价结果将发送到您的手机">
                </div>
                <input type="hidden" id="c-type" name="type" value="1">
                <input type="hidden" id="c-position" name="position" value="65">
                <div class="form-item">
                    <input type="submit" class="form-btn btn-block" id="calForm-btn" value="免费获取装修报修">
                </div>
            </form>
        </div>
        
    </div>
    <div class="m-footer">
        <p class="last">已有 <span class="people">30</span>人成功获取报价 </p>
    </div>
</div>

</div>
<div class="layer-huxing">
    <div class="layer-content">
        <span class="column">选择你家的户型</span>
        <i class="cut-line"></i>
        <div class="huxing-option">
            <ul class="option0">
                <li class="on">1室</li>
                <li class="">2室</li>
                <li>3室</li>
                <li>4室</li>
                <li>5室</li>
            </ul>
            <ul class="option1">
                <li class="">1厅</li>
                <li class="on">2厅</li>
                <li>3厅</li>
                <li>4厅</li>
                <li>5厅</li>
            </ul>
            <ul class="option2">
                <li class="on">1卫</li>
                <li>2卫</li>
                <li>3卫</li>
                <li>4卫</li>
                <li>5卫</li>
            </ul>
            <ul class="option3">
                <li class="on">1阳台</li>
                <li>2阳台</li>
                <li>3阳台</li>
                <li>4阳台</li>
                <li>5阳台</li>
            </ul>
        </div>
        <input type="button" value="确定" id="confirm" >
    </div>
</div>
<script type="text/javascript">
    var thisProvince = '350000';
    var thisCity = '350200';
    var thisArea = 'Array';
</script>
<script type="text/javascript" async="" src="src/js/fcagl.js"></script>
<script src="src/js/jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="src/js/getCity.js"></script>
<script type="text/javascript" src="src/saved_resource"></script>
<script type="text/javascript" src="src/js/layer.js"></script>
<script type="text/javascript" src="src/js/calculate.js"></script>
<script>
    $(function(){
        var radio=$("#clickra")[0].name;
        //按钮点击选择
        $('.decoration-type').click(function(){
            $(this).addClass('selected').siblings().removeClass('selected');
            $(this).css('border-color','#34c083').siblings().css('border-color','black');
            var rommclass =$('.decoration-type.selected').text();
            var vlue=''
            if(rommclass=='新房装修'){
                 vlue =1
            }else{
                 vlue =3
            }
            $("#clickra")[0].name=vlue
            console.log(radio);
            console.log(rommclass);

        })
        console.log(radio)

        $(".rooms").click(function(){
            $(".layer-huxing").show();
        })
        $('#confirm').click(function(){
            $(".layer-huxing").hide();
        })
        //几室几厅选择
        $(".huxing-option ul li").click(function(){
            $(this).addClass('on').siblings().removeClass('on');
        })
        var hosty=$("#housty")
        var id1=parseInt($(".huxing-option .option0 .on").index())+1
        var id2 =parseInt($(".huxing-option .option1 .on").index())+1
        var id3 =parseInt($(".huxing-option .option2 .on").index())+1
        var id4 =parseInt($(".huxing-option .option3 .on").index())+1
        var shi =$(".huxing-option .option0 .on").text();
        var ting = $(".huxing-option .option1 .on").text();
        var wei = $(".huxing-option .option2 .on").text();
        var yang = $(".huxing-option .option3 .on").text();
        $(".room").val(shi+ting+wei+yang)
        $('.shi').text(shi);
        $('.ting').text(ting);
        $('.wei').text(wei);
        $('.yang').text(yang)
        hosty[0].name=id1.toString()+id2.toString()+id3.toString()+id4.toString();
        var house =hosty[0].name
        var s=$(".huxing-option .option1 li")
        $(".huxing-option .option0 li").click(function(){
            var shi =$(this).text();
            var id1=parseInt($(this).index())+1
            var id2 =parseInt($(".huxing-option .option1 .on").index())+1;
            var id3 =parseInt($(".huxing-option .option2 .on").index())+1;
            var id4 =parseInt($(".huxing-option .option3 .on").index())+1;
            $('.shi').text(shi);
            $('#confirm').click(function(){
                $(".layer-huxing").hide();
            })
            $(".room").val(shi+ting+wei+yang)
            console.log(id2);
            console.log($('#housty'));
            console.log(s);
            hosty[0].name=id1.toString()+id2.toString()+id3.toString()+id4.toString();
        })
        $(".huxing-option .option1 li").click(function(){
            var ting =$(this).text();
            var id1=parseInt($(".huxing-option .option0 .on").index())+1;
            var id2 =parseInt($(this).index())+1;
            var id3 =parseInt($(".huxing-option .option2 .on").index())+1;
            var id4 =parseInt($(".huxing-option .option3 .on").index())+1;
            $('.ting').text(ting);
            $('#confirm').click(function(){
                $(".layer-huxing").hide();
            })
            $(".room").val(shi+ting+wei+yang);
            hosty[0].name=id1.toString()+id2.toString()+id3.toString()+id4.toString();
        })
        $(".huxing-option .option2 li").click(function(){
            var wei =$(this).text();
            var id1=parseInt($(".huxing-option .option0 .on").index())+1;
            var id2 =parseInt($(".huxing-option .option1 .on").index())+1;
            var id3 =parseInt($(this).index())+1;
            var id4 =parseInt($(".huxing-option .option3 .on").index())+1;
            $('.wei').text(wei);
            $('#confirm').click(function(){
                $(".layer-huxing").hide();
            })
            $(".room").val(shi+ting+wei+yang);
            hosty[0].name=id1.toString()+id2.toString()+id3.toString()+id4.toString()
        })
        $(".huxing-option .option3 li").click(function(){
            var yang =$(this).text();
            var id1=parseInt($(".huxing-option .option0 .on").index())+1;
            var id2 =parseInt($(".huxing-option .option1 .on").index())+1;
            var id3 =parseInt($(".huxing-option .option2 .on").index())+1;
            var id4 =parseInt($(this).index())+1;
            $('.yang').text(yang);
            $('#confirm').click(function(){
                $(".layer-huxing").hide();
            })
            $(".room").val(shi+ting+wei+yang);
            hosty[0].name=id1.toString()+id2.toString()+id3.toString()+id4.toString();
        })

        $('#calForm-btn').click(function(){
            $(".layer-huxing").hide();
            var arr =[];
            var city=$("#city").val();
            var house =$("#housty")[0].name;
            var radio =$("#clickra")[0].name;
            var mianji =$("#mianji").val();
            var phone =$("#phone").val();
            var dc1 ={
                city:city,
                hxxq :house,
                fwlx:radio,
                mianji:mianji,
                phone:phone
            };
            if(city||house||radio&&mianji&&phone==''){
                layer.msg('请填写完整');
            }else{
                window.location.href='result.html?data'+arr;
            }
            arr.push(dc1);
            console.log(arr);
        })
    })
</script>
</body>
</html>
